/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.ocr.handler;

import cn.ac.iie.di.datadock.rdata.exchange.client.core.REFieldType;
import cn.ac.iie.di.datadock.rdata.exchange.client.v1.REMessage;
import java.util.List;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public class Message {

    private String[] colNames;
    private REFieldType[] types;
    private List<Object[]> data;
    private String docSchemaName;
    private Map<String, String> userDesc;

    public Message() {
    }

    public Message(REMessage message) {
        this.colNames = message.colNames;
        this.types = message.types;
        this.data = message.data;
        this.docSchemaName = message.docSchemaName;
        this.userDesc = message.userDesc;
    }

    public Message(String[] colNames, REFieldType[] types, List<Object[]> data, String docSchemaName, Map<String, String> userDesc) {
        this.colNames = colNames;
        this.types = types;
        this.data = data;
        this.docSchemaName = docSchemaName;
        this.userDesc = userDesc;
    }

    public String[] getColNames() {
        return colNames;
    }

    public void setColNames(String[] colNames) {
        this.colNames = colNames;
    }

    public REFieldType[] getTypes() {
        return types;
    }

    public void setTypes(REFieldType[] types) {
        this.types = types;
    }

    public List<Object[]> getData() {
        return data;
    }

    public void setData(List<Object[]> data) {
        this.data = data;
    }

    public String getDocSchemaName() {
        return docSchemaName;
    }

    public void setDocSchemaName(String docSchemaName) {
        this.docSchemaName = docSchemaName;
    }

    public Map<String, String> getUserDesc() {
        return userDesc;
    }

    public void setUserDesc(Map<String, String> userDesc) {
        this.userDesc = userDesc;
    }

}
